package com.neusoft.databus.core.hbase;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "databus.core.hbase", ignoreUnknownFields = false)
public class HBaseProperties {

    private boolean enabled = true;
    private String tableName = "databus_monitor";
    private List<String> resources = new ArrayList<>();
    private Security security = new Security();

    @Getter
    @Setter
    public static class Security {
        private boolean enabled = false;
        private String authMethod = "KERBEROS";
        private String userPrincipal = "";
        private String userKeytab = "";
        private String conf = "";
    }

}
